/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package sg.edu.nus.iss.pacman.midlet;

import javax.microedition.lcdui.Display;
import javax.microedition.midlet.MIDlet;
import sg.edu.nus.iss.pacman.dao.Maze;
import sg.edu.nus.iss.pacman.ui.PacManUI;

/**
 * A trial game for PacMan. It bypasses all the registration, etc.
 * @author fredy
 */
public class PacManTrialMIDlet extends MIDlet implements PacManScreen
{
    private PacManUI pacManUI;

    public PacManTrialMIDlet()
    {
        pacManUI = new PacManUI(this);
        Display.getDisplay(this).setCurrent(pacManUI);
    }

    protected void startApp()
    {
    }

    protected void pauseApp()
    {
    }

    protected void destroyApp(boolean unconditional)
    {
    }

    public void displayMainMenu()
    {
        destroyApp(false);
        notifyDestroyed();
    }

    public void launchGame(Maze maze)
    {
        throw new UnsupportedOperationException("Not supported");
    }

    public void listBluetoothDevices(String[] bluetoothDevices)
    {
        throw new UnsupportedOperationException("Not supported");
    }

    public void displayChallengeMessage(String messaage)
    {
        throw new UnsupportedOperationException("Not supported");
    }

    public void displayAlertInfo(String alert)
    {
        throw new UnsupportedOperationException("Not supported");
    }

    public void displayAlertWarning(String alert)
    {
        throw new UnsupportedOperationException("Not supported");
    }

    public void displayAlertError(String alert)
    {
        throw new UnsupportedOperationException("Not supported");
    }

    public void displayInfo(String info)
    {
        throw new UnsupportedOperationException("Not supported");
    }

    public void completeGame(int score)
    {
    }

    public void displayDownloadedMazeList(String[] mazeList)
    {
        throw new UnsupportedOperationException("Not supported");
    }

    public void displayUserProfile()
    {
        destroyApp(false);
        notifyDestroyed();
    }
}
